﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WXYW.BLL;

namespace WXYW
{
    public partial class YJTJBasedOnBaoJiaDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindApplicationGridView();
            }
        }

        private void BindApplicationGridView()
        {
            YJTJService service = new YJTJService();
            ApplicationGridView.DataSource = service.GetYJModelBasedOnBaoJiaDetailList(Convert.ToInt32(Request.QueryString[Constants.QUERYSTR_STATION_ID]),
                Convert.ToInt32(Request.QueryString[Constants.QUERYSTR_YEAR]), Convert.ToInt32(Request.QueryString[Constants.QUERYSTR_MONTH]));
            ApplicationGridView.DataBind();
        }
    }
}
